package com.x.erp.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

/**
 * 保险线索
 * 
 * @author pansong
 *
 */
@MappingTable(tableName = "ERP_INSURANCE_CLUE")
public class InsuranceClue extends BaseObject {

	private static final long serialVersionUID = 714510312131536010L;

	@MappingColumn(columnName = "CLUE_ID", columnPk = true, columnLength = 32)
	private String clueId;// 保险线索ID

	@MappingColumn(columnName = "MODEL_ID")
	private Integer modelId;// 车型ID
	
	@MappingTable(tableName = "BASE_MODEL")
	private Model model;// 车型

	@MappingColumn(columnName = "CITY_ID")
	private String cityId;// 城市ID
	
	@MappingTable(tableName = "BASE_CITY")
	private City city;// 城市

	@MappingColumn(columnName = "CLUE_LICENCE_STATE")
	private Integer clueLicenceStatus;// 是否上牌（1：已上牌、2：未上牌）

	@MappingColumn(columnName = "CLUE_CAR_PLATE")
	private String clueCarPlant;// 车牌号

	@MappingColumn(columnName = "CLUE_MOBILE")
	private String clueMobile;// 用户联系方式

	@MappingColumn(columnName = "CLUE_ID_CARD")
	private String clueIdCard;// 身份证号

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@MappingColumn(columnName = "CLUE_CREATE_TIME")
	private Date clueCreateTime;// 创建时间

	public InsuranceClue() {
	}

	public String getClueId() {
		return clueId;
	}

	public void setClueId(String clueId) {
		this.clueId = clueId;
	}

	public Integer getModelId() {
		return modelId;
	}

	public void setModelId(Integer modelId) {
		this.modelId = modelId;
	}

	public Model getModel() {
		return model;
	}

	public void setModel(Model model) {
		this.model = model;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public Integer getClueLicenceStatus() {
		return clueLicenceStatus;
	}

	public void setClueLicenceStatus(Integer clueLicenceStatus) {
		this.clueLicenceStatus = clueLicenceStatus;
	}

	public String getClueCarPlant() {
		return clueCarPlant;
	}

	public void setClueCarPlant(String clueCarPlant) {
		this.clueCarPlant = clueCarPlant;
	}

	public String getClueMobile() {
		return clueMobile;
	}

	public void setClueMobile(String clueMobile) {
		this.clueMobile = clueMobile;
	}

	public String getClueIdCard() {
		return clueIdCard;
	}

	public void setClueIdCard(String clueIdCard) {
		this.clueIdCard = clueIdCard;
	}

	public Date getClueCreateTime() {
		return clueCreateTime;
	}

	public void setClueCreateTime(Date clueCreateTime) {
		this.clueCreateTime = clueCreateTime;
	}
}